let bookingName = document.querySelector(".booking_name");
let bookingSesstion = document.querySelector(".booking_sesstion");

let api = "http://newshopapi.0melon0.cn/api/f_user/report";
let data = {
    "phone": sessionStorage.getItem("phone"),
    "name": sessionStorage.getItem("name"),
    // "day_time":sessionStorage.getItem("day_time")
}

console.log(data);

ajax(api, data, "POST").then(res => {
    console.log(res.result);
    res.result.forEach(item => {
        // console.log(item.name);
        bookingName.innerHTML = `
    <span>姓名：</span>
    <span>${item.name}</span>
    `
        bookingSesstion.innerHTML = `
    <span>场次：</span>
    <span>${item.day_time}</span>
    `
    })
})